package com.ysd.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ysd.entity.Shopping;
import com.ysd.mapper.ShoppingMapper;
import com.ysd.service.ShoppingService;

@Service
public class ShoppingServiceImpl implements ShoppingService {

	@Autowired
	private ShoppingMapper shoppingMapper;
	
	@Override
	public List<Shopping> findShoppings(Shopping shopping) {
		return shoppingMapper.getShoppings(shopping);
	}
	
	@Override
	public int updateShoppingAdd(int id) {
		return shoppingMapper.updateShoppingAdd(id);
	}

	@Override
	public int updateShoppingReduce(int id) {
		return shoppingMapper.updateShoppingReduce(id);
	}

	@Override
	public int delShoppingById(int id) {
		return shoppingMapper.delShoppingById(id);
	}

	@Override
	public int delShoppingByIds(String ids) {
		return shoppingMapper.delShoppingByIds(ids);
	}
	
}
